
public class Test {

//	public static void main(String[] args) {
//		System.out.println("### INSTALL ###");
//		FKAttendDLLMapping attendDLLMapping = FKAttendDLLMapping.INSTANCE;
//		
//		final NativeLong res = attendDLLMapping.FK_ConnectNet(new NativeLong(1),
//				"192.168.1.222", new NativeLong(5005), new NativeLong(3000),
//				new NativeLong(0), new NativeLong(0), new NativeLong(1263));
//		System.out.println(" RES : " + res);
//
//		NativeLongByReference longByReference = new NativeLongByReference();
//		NativeLong res2 = attendDLLMapping.FK_GetDeviceVersion(res, longByReference);
//		System.out.println("RES : " + res2 + " Version : " + longByReference.getValue());
//
//		// **********************************************
//		// **************** LOAD USER *******************
//		// **********************************************
////		res2 = attendDLLMapping.FK_ReadAllUserID(res);
//		LongByReference apnEnrollNumber = new LongByReference();
//		LongByReference apnBackupNumber = new LongByReference();
//		LongByReference apnMachinePrivilege = new LongByReference();
//		LongByReference apnEnableFlag = new LongByReference();
//		LongByReference pnPassWord = new LongByReference();
//		IntByReference pnEnrollData = new IntByReference(1);
//		long usersize = 0;
//		System.out.println("###FK_ReadAllUserID : " + res2);
////		while(true){
////			res2 = attendDLLMapping.FK_GetAllUserID(res,apnEnrollNumber,apnBackupNumber,apnMachinePrivilege,apnEnableFlag);
////			if(res2.equals(ErrorCode.RUNERR_DATAARRAY_END))	break;
////			if(res2.equals(ErrorCode.RUN_SUCCESS)){
////				System.out.println("##FK_GetAllUserID RES : " + res2);
////				System.out.println("##apnEnrollNumber     : " + apnEnrollNumber.getValue());
////				System.out.println("##apnEnableFlag       : " + apnEnableFlag.getValue());
//////				res2 = attendDLLMapping.FK_GetEnrollData(res, new NativeLong(apnEnrollNumber.getValue()),  new NativeLong(apnBackupNumber.getValue())
//////					, apnMachinePrivilege, pnEnrollData, pnPassWord);
////				System.out.println(">>>>>>>>>>>>> " + res2);
////				System.out.println("##apnMachinePrivilege : " + apnMachinePrivilege.getValue());
////				System.out.println("##pnEnrollData : " + pnEnrollData);
////				System.out.println("##pnPassWord       : " + pnPassWord.getValue());
////				System.out.println("--------------------  > " + ++usersize);
////				
////			}
////			
////		}
//		// NativeLong read = attendDLLMapping.FK_LoadGeneralLogData(res, new
//		// NativeLong(0));
//		// System.out.println("read : " + read);
//		
//		// **********************************************
//		// **************** LOAD LOG ********************
//		// **********************************************
//		System.out.println("**********************************************");
//		System.out.println("**************** LOAD LOG ********************");
//		System.out.println("**********************************************");
//
//
//		NativeLong logRead = ErrorCode.RUNERR_NOSUPPORT;
//		long userSize = 0;
//		boolean isStop = false;
//		LongByReference pnEnrollNumber = new LongByReference();
//		LongByReference pnVerifyMode = new LongByReference();
//		LongByReference pnInOutMode = new LongByReference();
//		Pointer pnDateTime = new Pointer(0);
//
//		
//		res2 = attendDLLMapping.FK_LoadGeneralLogData(res, EnrollmentConstance.ReadMark_READ_ALL);
//		System.out.println(res2);
////		do{
////		logRead = attendDLLMapping.FK_GetGeneralLogData(res, pnEnrollNumber,  pnVerifyMode, pnInOutMode,  pnDateTime);
////		System.out.println("RETURN FK_GetGeneralLogData : " + logRead);
////		if(logRead.equals(ErrorCode.RUN_SUCCESS)){
////			userSize ++;
////			System.out.println("# -------------------#  " +   pnEnrollNumber.getValue() + "  #---------------------- #");
////			System.out.println("###logRead        : " + logRead);
////			System.out.println("###pnEnrollNumber : " + pnEnrollNumber.getValue());
////			System.out.println("###pnVerifyMode   : " + pnVerifyMode.getValue());
////			System.out.println("###pnInOutMode    : " + pnInOutMode.getValue());
////			System.out.println("###pnDateTime     : " + pnDateTime);
////			System.out.println("#-------------------------------------------------------------------------------------#");
////			System.out.println("# ---- SIZE : " + (userSize));
////		}else{
//////			res2 = attendDLLMapping.FK_LoadGeneralLogData(res, EnrollmentData.ReadMark_READ_NEW);
////			System.err.println(" ### NO DATA ### :  " + logRead);
////			if(logRead.equals( ErrorCode.RUNERR_DATAARRAY_END)){
////				res2 = attendDLLMapping.FK_LoadGeneralLogData(res, EnrollmentConstance.ReadMark_READ_NEW);
////				System.err.println(" ### INSTALL  ### :  " + res2);
////			}
////		}
////		
////		if(isStop) break;
////		
////		
////		try {
////			Thread.sleep(1000);
////		} catch (InterruptedException e) {
////			e.printStackTrace();
////		}
////		
////		}while( true );
//		LongByReference apnYear = new LongByReference();
//		LongByReference apnMonth = new LongByReference();
//		LongByReference apnDay = new LongByReference();
//		LongByReference apnHour = new LongByReference();
//		LongByReference apnMinute = new LongByReference();
//		LongByReference apnSec = new LongByReference();
//		NativeLongByReference pnVerifyMode2 = new NativeLongByReference();
//		do{
////			logRead = attendDLLMapping.FK_GetGeneralLogData_1(res, pnEnrollNumber, pnVerifyMode2, pnInOutMode, apnYear, apnMonth, apnDay, apnHour, apnMinute, apnSec);
//			System.err.println("RETURN FK_GetGeneralLogData_1 : " + logRead);
//			if(logRead.equals(ErrorCode.RUN_SUCCESS)){
//				if(pnEnrollNumber.getValue() != 0){
//					userSize ++;
//					System.out.println("# -------------------#  " +   pnEnrollNumber.getValue() + "  #---------------------- #");
//					System.out.println("###logRead        : " + logRead);
//					System.out.println("###pnEnrollNumber : " + pnEnrollNumber.getValue());
//					System.out.println("###pnVerifyMode   : " + pnVerifyMode2.getValue());
//					System.out.println("###pnInOutMode    : " + pnInOutMode.getValue());
//					System.out.println("############ TIME ##################");
//					System.out.println("##apnYear   : " + apnYear.getValue());
//					System.out.println("##apnMonth  : " + apnMonth.getValue());
//					System.out.println("##apnDay    : " + apnDay.getValue());
//					System.out.println("##apnHour   : " + apnHour.getValue());
//					System.out.println("##apnMinute : " + apnMinute.getValue());
//					System.out.println("##apnSec    : " + apnSec.getValue());
//					System.out.println("#-------------------------------------------------------------------------------------#");
//					System.out.println("# ---- SIZE : " + (userSize));
//				}else{
//					System.err.println("# ---- NONE EnrollNumer : " + pnEnrollData.getValue());
//
//				}
//			}else{
//				System.err.println(" ### NO DATA ### :  " + logRead);
//				if(logRead.equals( ErrorCode.RUNERR_DATAARRAY_END)){
//					res2 = attendDLLMapping.FK_LoadGeneralLogData(res, EnrollmentConstance.ReadMark_READ_NEW);
//					System.err.println(" ### INSTALL  ### :  " + res2);
//					userSize = 0 ;
//				}
//			}
//			
//			if(isStop) break;
//			
//			
//			try {
//				Thread.sleep(1000);
//			} catch (InterruptedException e) {
//				e.printStackTrace();
//			}
//			
//		}while( true );
//
//		System.out.println("# ---- SIZE : " + (userSize));
//	}
}
